package designPattern.behavioralPattern.observer.完全自定义;

/**
 * @author wei.zhao
 * @description:
 * @date 2021年12月20日 13:58
 */
public class Test {

    public static void main(String[] args) {
        Subject subject = new ConcreteSubject();
        Observer obs1 = new ConcreteObserver1();
        Observer obs2 = new ConcreteObserver2();
        subject.add(obs1);
        subject.add(obs2);
        subject.notifyObserver();
    }

}
